<html>

<head>
    <title>EUV</title>

</head>

<body>
    <div id="name"></div>
    <div id="age"></div>
    <input type="tex" oninput="obj.name = this.value" />
    <input type="date" onchange="obj.age = this.value" />

    <script src="./js/euv.js"></script>
    <script>
        const obj = {
            name: '你好',
            age: 18
        }
        observe(obj)

        function setName() {
            document.getElementById('name').innerHTML = obj.name
        }

        function setAge() {
            document.getElementById('age').innerHTML = obj.age
        }

        autorun(setName)
        autorun(setAge)

    </script>
</body>

</html>